fix(proxy-responses): restart verified v1 goals after stale anchors - #48
Merged
Conversation
Source sidechat: 01a045d1-ecf5-7840-b404-4c9b6098216d\nRecovered from: a347912
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix native Codex
/v1/responsesGoal restart after a proxy-injected staleprevious_response_id. A verified, self-contained Goal restart now rotates HTTP turn-state and performs the safe fresh replay path; an unsafe stale-anchor continuation terminates once instead of repeatedly local-rebinding and reinjecting the same stale anchor.Source sidechat:
01a045d1-ecf5-7840-b404-4c9b6098216dRecovered from:
a347912b8334af52133bfc4436381fb78afb8888Type of change
fix:— bug fixLinked issue: GitHub Issues are disabled for
chekdata/codex-lb; this PR tracks the internal stale-anchor incident directly.Change directory:
openspec/changes/recover-v1-goal-restart-from-stale-durable-anchor/Changes
previous_response_id.Test plan
Passed locally:
Known blockers / gaps
postgresql+asyncpg://codex_lb:codex_lb@127.0.0.1:5432/codex_lb, but the local environment has no PostgreSQL listener (ConnectionRefusedError: [Errno 61]);pg_isready,psql,postgres,initdb,pg_ctl, and Docker are unavailable. SQLite was not used as a substitute.npx --yes @fission-ai/openspec@latest validate --specs --strictcurrently reports35 passed, 22 faileddue to pre-existing unrelated specs (including account-auth, account-routing, and release-automation); the targetresponses-api-compatspec and this change validate successfully.main, image/GitOps deployment, and production Goal probe are not complete in this PR. Production probing is intentionally not run.Merge/deploy status
This PR is opened from
fix/v1-goal-restart-stale-anchorat commit6e2750a98c3335a8979c7cfdc3a1fb6f622eaf41. It has not enteredorigin/main, has not been deployed, and has not changed production state.